package com.wx.wxsecondskill.enums;

import com.wx.core.enums.EnumStatus;

/**
 * @ClassName SecondsKillEnumStatus
 * @Author wx
 * @Description 秒杀系统枚举集合
 * @Date 2018-11-15-21:37
 */
public class SecondsKillEnumStatus {

    /**
     * @Author wx
     * @Description 秒杀进行时状态
     * @Date 2018-11-15
     */
    public enum SecondsKillForStatus implements EnumStatus {
        SECONDS_KILL_FOR_STATUS_0(0,"未开始"),
        SECONDS_KILL_FOR_STATUS_1(1,"进行中"),
        SECONDS_KILL_FOR_STATUS_2(2,"已经结束"),
        ;
        /** 状态标识 */
        private Integer code;

        /** 描述 */
        private String message;

        private SecondsKillForStatus(Integer code,String message){
            this.code = code;
            this.message = message;
        }

        @Override
        public Integer getCode() {
            return this.code;
        }

        @Override
        public String getMessage() {
            return this.message;
        }
    }


    /**
     * @Author wx
     * @Description 订单通道
     * @Date 2018-11-15
     */
    public enum OrderChannelStatus implements EnumStatus {
        ORDER_CHANNEL_STATUS_1(1,"PC"),
        ORDER_CHANNEL_STATUS_2(2,"android"),
        ORDER_CHANNEL_STATUS_3(3,"ios"),
        ;
        /** 状态标识 */
        private Integer code;

        /** 描述 */
        private String message;

        private OrderChannelStatus(Integer code,String message){
            this.code = code;
            this.message = message;
        }

        @Override
        public Integer getCode() {
            return this.code;
        }

        @Override
        public String getMessage() {
            return this.message;
        }
    }


    /**
     * @Author wx
     * @Description 订单状态
     * @Date 2018-11-15
     */
    public enum OrderStatus implements EnumStatus {
        ORDER_STATUS_0(0,"新建未支付"),
        ORDER_STATUS_1(1,"已支付"),
        ORDER_STATUS_2(2,"已发货"),
        ORDER_STATUS_3(3,"已收货"),
        ORDER_STATUS_4(4,"已退款"),
        ORDER_STATUS_5(5,"已完成"),
        ;
        /** 状态标识 */
        private Integer code;

        /** 描述 */
        private String message;

        private OrderStatus(Integer code,String message){
            this.code = code;
            this.message = message;
        }

        @Override
        public Integer getCode() {
            return this.code;
        }

        @Override
        public String getMessage() {
            return this.message;
        }
    }
}
